//
//  UIImage+Extension.h
//  MinesTime
//
//  Created by imac on 2017/11/2.
//  Copyright © 2017年 MS1968. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Extension)

/** 根据颜色创建图片 */
+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;

/** 传入UIImage 压缩 返回NSData */
+ (NSData *)zipNSDataWithImage:(UIImage *)sourceImage;

/** fix orientation 图片旋转 */
- (UIImage *)fixOrientation;
/** 截取图片的某一部分 */
- (UIImage *)clipImageWithRect:(CGRect)rect;

//+ (UIImage *)captureWithCenter:(CGPoint)center size:(CGSize)size;
@end
